function empty()
	{
		err_name.innerText = "";
		err_code.innerText = "";
		err_description.innerText = "";
		err_id_type.innerText = "";
		err_pm.innerText = "";
		err_status.innerText = "";
		err_plan_start_date.innerText = "";
		err_plan_end_date.innerText = "";
		err_real_start_date.innerText = "";
		err_real_end_date.innerText = "";
		err_creator.innerText = "";
		err_id_company.innerText = "";
	}

	function checkInput()
	{
		empty();
		var result = true;
		if(document.fmInsert.name.value=="")
		{
			err_name.innerText=" Please input name";
			result = false;
		}
		if(document.fmInsert.code.value=="")
		{
			err_code.innerText=" Please input code";
			result = false;
		}
		if(document.fmInsert.description.value=="")
		{
			err_description.innerText=" Please input description";
			result = false;
		}
		if(document.fmInsert.id_type.value=="")
		{
			err_id_type.innerText=" Please input id_type";
			result = false;
		}
		if(document.fmInsert.pm.value=="")
		{
			err_pm.innerText=" Please input pm";
			result = false;
		}
		if(document.fmInsert.status.value=="")
		{
			err_status.innerText=" Please input status";
			result = false;
		}
		if(document.fmInsert.plan_start_date.value=="")
		{
			err_plan_start_date.innerText=" Please input plan_start_date";
			result = false;
		}
		if(document.fmInsert.plan_end_date.value=="")
		{
			err_plan_end_date.innerText=" Please input plan_end_date";
			result = false;
		}
		if(document.fmInsert.real_start_date.value=="")
		{
			err_real_start_date.innerText=" Please input real_start_date";
			result = false;
		}
		if(document.fmInsert.real_end_date.value=="")
		{
			err_real_end_date.innerText=" Please input real_end_date";
			result = false;
		}
		if(document.fmInsert.creator.value=="")
		{
			err_creator.innerText=" Please input creator";
			result = false;
		}
		if(document.fmInsert.id_company.value=="")
		{
			err_id_company.innerText=" Please input id_company";
			result = false;
		}
		return result;
	}

	function checkUpdateInput() 
	{
		return true;
	}
	
	function showHide(shID)
	{
		if(document.getElementById(shID).style.display == 'none')
			document.getElementById(shID).style.display = 'block';
		else
			document.getElementById(shID).style.display = 'none';
	}